<template>
  <slot v-if="props.type == 'add' || props.type == 'edit'"> </slot>
  <div v-else class="show_info">{{ props.value }}</div>
</template>

<script setup>
const props = defineProps({ type: String, value: String });
</script>

<style lang="scss" scoped>
.show_info {
  border: 1px solid #eee;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 3px;
  position: relative;

  background-color: #f5f7fa;
  color: #a8abb2;
  .show_info_append {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0 15px;
    background-color: #f5f7fa;
    color: #909399;
    height: 100%;
    border-left: 1px solid #eee;
  }
  .file_li {
    color: #428bca;
    display: inline-block;
    padding-right: 30px;
  }
}
</style>
